package com.xuchaotong.utils;

import lombok.extern.slf4j.Slf4j;
import org.junit.Test;

@Slf4j
public class RegexUtils {

    @Test
    public void test(){
        String regexStr = "^[1-9]\\d*$";
        String regexStr1 = "^((-\\d+)|(0+))$";

        String input = "100.1";

        Boolean isMatch = input.matches(regexStr);

        log.info("" + isMatch);
    }
}
